local sk__zhulu = fk.CreateSkill {

  name = "sk__zhulu",

  tags = {  },

}



sk__zhulu:addEffect(fk.Damage, {
  name = "sk__zhulu",
  anim_type = "control",
  can_trigger = function(self, event, target, player, data)
    return target and target == player and player:hasSkill(sk__zhulu.name) and not data.to.dead and not data.to:isNude() and
      table.find(player.room:getOtherPlayers(data.to), function(p)
        return not p.dead
      end)
  end,
  on_cost = function(self, event, target, player, data)
    return player.room:askForSkillInvoke(player, sk__zhulu.name, nil, "#sk__zhulu-invoke::"..data.to.id)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    for _, p in ipairs(room:getOtherPlayers(data.to)) do
      if data.to.dead or data.to:isNude() then return end
      if not p.dead then
        room:doIndicate(p.id, {data.to.id})
        local card = room:askForCardChosen(p, data.to, "he", sk__zhulu.name)
        room:moveCardTo(card, Card.PlayerHand, p, fk.ReasonPrey, sk__zhulu.name, nil, false, p)
      end
    end
  end,
})

return sk__zhulu